const koa=require('koa')
const app=new koa();
const bodyParser=require('koa-bodyparser');
const cors=require('koa-cors')
const router=require('./router')

app.use(cors())
app.use(bodyParser())
router(app)///挂载路由

app.listen(8888,()=>{
    console.log('8888启动！！！！')
})